﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第二十二题
//BC24 总成绩和平均分计算
//https://www.nowcoder.com/practice/0fa5132c156b434da4347ad051c4be22?tpId=107&tqId=33305&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    float num1 = 0.0f;
    float num2 = 0.0f;
    float num3 = 0.0f;
    scanf("%f %f %f", &num1, &num2, &num3);
    float sum = num1 + num2 + num3;

    printf("%.2f %.2f", sum, sum / 3);

    return 0;
}
